import Mock from "mockjs"

const data = Mock.mock({
    "list|20": [
        {
            name: "@ctitle",
            img: "@image(100x100,@color)",
            id: "@id"
        }
    ]
})

Mock.mock('/api/list', () => {
    return {
        code: 200,
        data: data.list
    }
})